package personal.hrsw.mybatisplusdemo.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import personal.hrsw.mybatisplusdemo.domain.Admin;
import personal.hrsw.mybatisplusdemo.service.AdminService;
import personal.hrsw.mybatisplusdemo.mapper.AdminMapper;
import org.springframework.stereotype.Service;

/**
* @author Administrator
* @description 针对表【admin】的数据库操作Service实现
* @createDate 2025-04-24 09:27:23
*/
@Service
public class AdminServiceImpl extends ServiceImpl<AdminMapper, Admin>
    implements AdminService{
    @Autowired
    AdminMapper adminMapper;
    @Override
    public boolean login(String username, String password) {
        return adminMapper.selectByNameAndPwd(username,password)!=null;
    }
}




